Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nr 341876 make docker images pre release uniform #103

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

rahulreddy15
Copy link
Contributor

Testing the docker image releases one by one.
Can be merged once thats done.

@rahulreddy15
Copy link
Contributor Author

Tested with all the docker image releases that were automated so far

  • nri-prometheus
  • nri-ecs
  • nri-statsd
  • infrastructure-bundle

Comment on lines +172 to +175
- name: Generate version from tag
run: |
TAG_WITHOUT_V=$(echo "${{ env.TAG }}" | sed 's/^v//')
echo "VERSION=$TAG_WITHOUT_V" >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this, there if no guarantee the different repos using a custom build command are checking "VERSION"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the repos release actions and scripts were modified to use DOCKER_IMAGE_TAG env variable for the tag.
VERSION and TAG_SUFFIX are no longer used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it true also for nri-prometheus? I do not see such change in this PR https://github.com/newrelic/nri-prometheus/pull/511/files

- name: Add pre-release tag suffix
if: ${{ github.event.release.prerelease }}
run: |
echo "TAG_SUFFIX=-pre" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since only prometheus needs this. Set this in the prometheus build command.

ORIGINAL_REPO_NAME: ${{ inputs.original_repo_name }}
REPO_FULL_NAME: ${{ github.event.repository.full_name }}
INTEGRATION: ${{ inputs.integration_name }}
S3_PATH: ${{ inputs.bucket_url }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S3_PATH and other variables needed only by prometheus can be setup in the build command.

Copy link
Member

@paologallinaharbur paologallinaharbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting on the few changes discussed online

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants